$(function () { 
    $UMP$getRM().initialize();
    $UMP$getRM()._do_init_object_model();
    $UMP$getRM().get_controlManager().set_controlTree(@{cTree});
    $InitControlTree();
    
    @{APPJS}
    
    
    $("div[uc-type='layoutBox']").each(function(index){
		//debugger;
			var parentHeight = $(this).prop("clientHeight");
			$(this).children().each(function() {
				var $child = $(this);
				var borderWidth = $child.outerHeight() - $child.innerHeight();
				$child.height(parentHeight - borderWidth);
			});
	});
	
	$("label").each(function(index){
		debugger;
			$(this).css("line-height",$(this).height()+"px");
			
	});
}); 